#include<iostream>
using namespace std;
class RentHome
{
 public:
 RentHome(){}

 virtual void renthome()=0;

};


class Landlord:RentHome
{

 public:
 virtual void renthome()
 {
   cout<<"我要出租房"<<endl;
 }

};


class mediator:RentHome
{

 public:
 virtual void renthome()
 {
   _Landlord.renthome();
   cout<<"我要装修"<<endl;
   cout<<"我要带人看房"<<endl;



 }


 private:
 Landlord _Landlord;

};
int main()
{
  
   mediator _mediator;
    _mediator.renthome();


}